﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace DAL
{
    public class GlobalConfiguration
    {
        private static int pageSize;

        public static int PageSize
        {
            get { return GlobalConfiguration.pageSize; }

        }
        private static string siteName;

        public static string SiteName
        {
            get { return GlobalConfiguration.siteName; }

        }
        private static int descriptionLength;

        public static int DescriptionLength
        {
            get { return GlobalConfiguration.descriptionLength; }

        }
        private static int imagesPerPage;

        public static int ImagesPerPage
        {
            get { return GlobalConfiguration.imagesPerPage; }
          
        }
        static GlobalConfiguration()
        {
            pageSize = Convert.ToInt32(ConfigurationManager.AppSettings["PageSize"]);
            descriptionLength = Convert.ToInt32(ConfigurationManager.AppSettings["DesLength"]);
            siteName = ConfigurationManager.AppSettings["SiteName"];
            imagesPerPage = Convert.ToInt32(ConfigurationManager.AppSettings["ImagesPerPage"]);
        }
    }
}
